<?php 
//查询条件
$comment = new OrdComment();
$comment->unsetAttributes();//清空属性
$comment->zp_id = (int)$pid;
$comment->zoc_view = 1;
$comment->zoc_type = 2;
//全部评论
$comment_all = $comment->search();
//好评
$comment->zoc_sum = 3;
$comment_good = $comment->search();
//中评
$comment->zoc_sum = 2;
$comment_mid = $comment->search();
//差评
$comment->zoc_sum = 1;
$comment_bad = $comment->search();
?>

<div class="hder tab_hd">
	<input type="radio" name="evaluate" class="radio" checked="checked" />全部
	<input type="radio" name="evaluate" class="radio" />好评(<?php echo $comment_good->getTotalItemCount()?>)
	<input type="radio" name="evaluate" class="radio" />中评(<?php echo $comment_mid->getTotalItemCount()?>)
	<input type="radio" name="evaluate" class="radio" />差评(<?php echo $comment_bad->getTotalItemCount()?>)
</div>
<div class="bder tab_cont bg_fff">
    <?php   
    $this->widget('zii.widgets.CListView', array(  
            'dataProvider'=>$comment_all,  
            'itemView'=>'_comments_view',    
            'emptyText'=>'暂时没有数据', 
            'template'=>'{items}{pager}', 
            'pager'=>array('class'=>'CLinksPager'),
           // 'htmlOptions'=>array('class'=>'list-view pro_list bd'),
            'itemsTagName'=>'ul',
            'pagerTemplate'=>'onlyPager',
            'buttonCssClass'=>'bg_x btn_page',
            ));  
    ?>
</div>
<div class="bder tab_cont bg_fff">
    <?php   
    //好评
    $this->widget('zii.widgets.CListView', array(  
            'dataProvider'=>$comment_good,  
            'itemView'=>'_comments_view',    
            'emptyText'=>'暂时没有数据', 
            'template'=>'{items}{pager}', 
            'pager'=>array('class'=>'CLinksPager'),
           // 'htmlOptions'=>array('class'=>'list-view pro_list bd'),
            'itemsTagName'=>'ul',
            'pagerTemplate'=>'onlyPager',
            'buttonCssClass'=>'bg_x btn_page',
            ));  
    ?>
</div>
<div class="bder tab_cont bg_fff">
     <?php   
    //中评
    $this->widget('zii.widgets.CListView', array(  
            'dataProvider'=>$comment_mid,  
            'itemView'=>'_comments_view',    
            'emptyText'=>'暂时没有数据', 
            'template'=>'{items}{pager}', 
            'pager'=>array('class'=>'CLinksPager'),
           // 'htmlOptions'=>array('class'=>'list-view pro_list bd'),
            'itemsTagName'=>'ul',
            'pagerTemplate'=>'onlyPager',
            'buttonCssClass'=>'bg_x btn_page',
            ));  
    ?>
</div>
<div class="bder tab_cont bg_fff">
     <?php   
    //差评
    $this->widget('zii.widgets.CListView', array(  
            'dataProvider'=>$comment_bad,  
            'itemView'=>'_comments_view',    
            'emptyText'=>'暂时没有数据', 
            'template'=>'{items}{pager}', 
            'pager'=>array('class'=>'CLinksPager'),
           // 'htmlOptions'=>array('class'=>'list-view pro_list bd'),
            'itemsTagName'=>'ul',
            'pagerTemplate'=>'onlyPager',
            'buttonCssClass'=>'bg_x btn_page',
            ));  
    ?>
</div>